package InterfaceDemo;

public class Tablet implements ElectronicDevice{
    private String mode2;
    public Tablet(String mode1){
        this.mode2 = mode1;
    }
    public void powerOn(){
        System.out.println(mode2 +"平板开机");

    }

    public void powerOff(){
        System.out.println(mode2 +"平板关机");
    }
    public void repair(){
        System.out.println(mode2 +"平板报修");
    }
    public void charge(){
        System.out.println(mode2 +"平板正在充电...");
    }
}
